In Reshef Of Destruction , Goblin Fan reflects a direct attack on the player's life points back at the opponent and it works both for monster attacks and card effects
The important part about identifying mistakes is to learn from them
I haven't looked at the disassembly for the TCG game like I have for Crystal and Emerald, but all the attention and interest hacking this has gotten in the last year has me hopeful
Most of the logic discussed can be applied to noncreature spells fairly easily, but they have to be taken on more of a case-by-case basis due to their dynamic nature and difficulty with which to interact
Magda, Brazen Outlaws ability triggers on attack, but wont be found by the specific search above
Even if you dont run the Energy needed to attack with it, the fact that is has no weaknesses means your opponent cant speed up the knockout process unless they have a Pokemon that can take it out in one hit